export const ACTION_SET_PHONE = 'SET_PHONE';
export const ACTION_SET_STEP = 'SET_STEP';
export const ACTION_SET_HISTORY_STEP = 'SET_HISTORY_STEP';
export const ACTION_SET_DEFAULT_SELECTED_KEYS = 'SET_DEFAULT_SELECTED_KEYS';
export const ACTION_SET_DEFAULT_OPEN_KEYS = 'SET_DEFAULT_OPEN_KEYS';

export function setPhone(phone: string) {
    return {
        type: ACTION_SET_PHONE,
        payload: phone,
    }
}
export function setStep(setp: string) {
    return {
        type: ACTION_SET_STEP,
        payload: setp,
    }
}
export function setHistoryStep(setp: string) {
    return {
        type: ACTION_SET_HISTORY_STEP,
        payload: setp,
    }
}
export function setDefaultSelectedKeys(keys: string) {
    return {
        type: ACTION_SET_DEFAULT_SELECTED_KEYS,
        payload: keys,
    }
}
export function setDefaultOpenKeys(keys: Array<string>) {
    return {
        type: ACTION_SET_DEFAULT_OPEN_KEYS,
        payload: keys,
    }
}